package javaClassDesign.AccessModifiers.MetodoEnHijaNoEnPadre.p2;

import javaClassDesign.AccessModifiers.MetodoEnHijaNoEnPadre.p1.Aprotected;

public class B extends Aprotected {

	public void process(Aprotected a) {
		// a.i = a.i * 2;// NO COMPILA
	}

	public static void main(String[] args) {
		Aprotected a = new B();
		// a.i = 0;//NO COMPILA --
		// http://docs.oracle.com/javase/specs/jls/se7/html/jls-6.html#jls-6.6.2
		B b = new B();
		b.i = 0;// SI COMPILA
		b.process(a);

		System.out.println(a.getI());
	}

}
